﻿using UnityEngine;
using UnityEngine.UI;
using System.Collections;
using CHFramework;

public class UIShopPanel : BaseUI 
{
    public Button CloseBtn;

    private void Awake()
    {
        base.CurrentUIType.PanelType = UIPanelType.Popup;
        base.CurrentUIType.ShowMode = UIPanelShowMode.Normal;

        EventTriggerListener.Get(CloseBtn.gameObject).onClick = OnClose;
    }

    /// <summary>
    /// 关闭
    /// </summary>
    /// <param name="sender"></param>
    public void OnClose(GameObject sender)
    {
        UIManager.Instance.CloseUIPanel(EnumPanel.UIShopPanel);
    }
}
